using System;

namespace Rockfan.Framework.Audio.Midi
{
    internal sealed class TempoEvent : BaseMidiEvent
	{
		private const float MICROSECONDS_PER_MINUTE = 6E+07F;
	
		public int Tempo { get; private set; }
		public float BPM { get { return MICROSECONDS_PER_MINUTE / (float)Tempo; } }
		
		public TempoEvent(int start, int tempo)
            :base(start)
		{
			this.Tempo = tempo;
		}
	}
}